package com.xinjian.jianba.service;

import org.elasticsearch.action.DocWriteResponse;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.update.UpdateResponse;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.index.query.QueryBuilder;

import com.xinjian.jianba.dto.es.EsServiceResult;
import com.xinjian.jianba.dto.es.FindDocDto;

public interface EsService {

	public EsServiceResult indexDocumentUserId(String index,String type,XContentBuilder builder,String docId);
	public EsServiceResult updateDocumentsUserId(String index,String type,XContentBuilder builder,String docId);
	public EsServiceResult upsrts(String index,String type,XContentBuilder builder,String docId);
	public EsServiceResult findByDocId(String index,String type,String docId);
	public EsServiceResult findPersons(String index, String type,FindDocDto findDocDto);
	public EsServiceResult deleteDocByDocId(String index,String type,String docId);
	public EsServiceResult find(String index,String type,QueryBuilder queryBuilder,Float lngfloat,Float latfloat,Integer pageNumber,Integer pageSize);
}
